<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>" />
    <!-- 设置页面的基础路径，页面所有资源引入和页面跳转都基于bathPath -->

    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="static/h-ui/css/H-ui.min.css" rel="stylesheet"
          type="text/css" />
    <link href="static/h-ui.admin/css/H-ui.login.css" rel="stylesheet"
          type="text/css" />
    <link href="static/h-ui.admin/css/style.css" rel="stylesheet"
          type="text/css" />
    <link href="lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet"
          type="text/css" />
    <title>好医生-后台登录</title>
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="loginWraper">
    <div id="loginform" class="loginBox">
        <form class="form form-horizontal" action="user/login.do" method="post">
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
                <div class="formControls col-xs-8">
                    <input id="username" name="username" type="text" placeholder="用户名"
                           class="input-text size-L">
                </div>
            </div>

            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
                <div class="formControls col-xs-8">
                    <input id="password" name="password" type="password" placeholder="密码"
                           class="input-text size-L">
                </div>
            </div>

            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input class="input-text size-L" type="text" placeholder="验证码"
                           name="inputVerifyCode" style="width: 150px;">
                    <img id="verifyCode" onclick="changeVerifyCode();" src="verifyCode.jsp"
                         style="cursor:pointer" title="看不清，换一张">
                    <a id="verifyCode2" onclick="changeVerifyCode()">看不清，换一张</a>
                    <script>
                        function changeVerifyCode(){
                            //这里在后面加上一个time时间戳参数，保证验证码不重复
                            $("#verifyCode,#verifyCode2").prop("src","verifyCode.jsp?time=" + new Date().getTime());
                        }
                    </script>
                </div>
            </div>

            <!-- 登录的错误提示信息 -->
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <span style="color:red;">${errMsg }</span>
                </div>
            </div>

            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input type="checkbox" name="rememberMe" id="rememberMe" >使我保持登录状态
                </div>
            </div>

            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="" type="submit" class="btn btn-success radius size-L"
                           value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;"> <input
                        name="" type="reset" class="btn btn-default radius size-L"
                        value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
                </div>
            </div>
        </form>
    </div>
</div>
<div class="footer" style="font-size: 18px">好医生诊所管理系统</div>
<script type="text/javascript" src="lib/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
